package com.itheima.pojo;

import java.util.Date;
import java.util.List;

public class User {
    private int id;
    private String real_name;
    private String telephone;
    private char sex;
    private String username;
    private String password;
    private Date birthday;
    private String email;
    private List<Favorite> favoriteList;

    public List<Favorite> getFavoriteList() {
        return favoriteList;
    }

    public void setFavoriteList(List<Favorite> favoriteList) {
        this.favoriteList = favoriteList;
    }

    public User() {
    }

    public User(int id, String real_name, String telephone, char sex, String username, String password, Date birthday, String email, List<Favorite> favoriteList) {
        this.id = id;
        this.real_name = real_name;
        this.telephone = telephone;
        this.sex = sex;
        this.username = username;
        this.password = password;
        this.birthday = birthday;
        this.email = email;
        this.favoriteList = favoriteList;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", real_name='" + real_name + '\'' +
                ", telephone='" + telephone + '\'' +
                ", sex=" + sex +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", birthday=" + birthday +
                ", email='" + email + '\'' +
                ", favoriteList=" + favoriteList +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getReal_name() {
        return real_name;
    }

    public void setReal_name(String real_name) {
        this.real_name = real_name;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
